#include "px_def.h"
#include "px_math.h"


PXRect::PXRect()
{
}


PXRect::PXRect(LONG _left, LONG _top, LONG _right, LONG _bottom)
{
	left = _left;
	top = _top;
	right = _right;
	bottom = _bottom;
}


LONG PXRect::Width(void)const
{
	return right - left;
}


LONG PXRect::Height(void)const
{
	return bottom - top;
}



PXRect::operator const RECT*()const
{
	return (const RECT*)this;
}

PXRect::operator RECT*()
{
	return (RECT*)this;
}



//////////////////////////////////////////////////////////////////////////